﻿using System;
using System.Runtime.Serialization;

namespace MassIntellect
{
	[Serializable]
    public class InterfaceNotImplementedException : Exception
    {
        public Type InterfaceType { get; private set; }

        public InterfaceNotImplementedException(Type InterfaceType, Exception inner )
            : base( "Интерфейс {0} не найден." +InterfaceType.Name, inner)
        {
            this.InterfaceType = InterfaceType;
        }

        protected InterfaceNotImplementedException(
            SerializationInfo info,
            StreamingContext context)
            : base(info, context)
        {
        }
    }
}
